<template>
	<view class="flex-col page">
		<view class="flex-col boxs">
			<view class="flex-col">
				<text class="self-start font text_2">收件人</text>
				<view class="flex-col justify-start items-start self-stretch input-box mt-19">
					<u-input class="uni-input font_2 text_3" placeholder="请填写收货人姓名" border="none" v-model="value"
						@change="change"></u-input>
					<!-- <input
            class="uni-input font_2 text_3"
            placeholder="请填写收货人姓名"
          /> -->
				</view>
			</view>
			<view class="mt-18 flex-col">
				<text class="self-start font text_4">手机号</text>
				<view class="flex-col justify-start items-start self-stretch input-box mt-19">
					<u-input class="uni-input font_2 text_3" placeholder="请填写收货人姓名" border="none" v-model="value"
						@change="change"></u-input>
				</view>
			</view>
			<view class="mt-18 flex-col">
				<view class="flex-col">
					<text class="self-start font text_5">城市</text>
					<view class="flex-row justify-between items-center self-stretch group_3 mt-19">
						<input class="uni-input font_3" placeholder="请输入城市..." />
						<image class="image_2" src="../../static/wx/04316a792716afad7733715c3ef586ea.png" />
					</view>
				</view>
				<view class="mt-18 flex-col">
					<view class="flex-col">
						<text class="self-start font text_6">详细地址</text>
						<view class="flex-col justify-start items-start self-stretch input-box mt-19">
							<u-input class="uni-input font_2 text_3" placeholder="请填写收货人姓名" border="none"
								v-model="value" @change="change"></u-input>
						</view>
					</view>
					<view class="mt-18 flex-col">
						<text class="self-start font text_8">邮政编码</text>
						<view class="flex-col justify-start items-start self-stretch input-box mt-19">
							<u-input class="uni-input font_2 text_3" placeholder="请填写收货人姓名" border="none"
								v-model="value" @change="change"></u-input>
						</view>
					</view>
					<view class="mt-18 flex-col">
						<text class="self-start font text_10">地址标签</text>
						<picker @change="bindPickerChange" :value="index" :range="array">
							<view class="flex-col justify-start items-start self-stretch text-wrapper_3 mt-19">
								<text class="font_2 text_11">{{ array[index] }}</text>
							</view>
						</picker>
					</view>
				</view>
			</view>
		</view>
		<view class="flex-row items-center group_5">
			<switch checked color="#3A7BEB" style="transform: scale(0.5)" />
			<text class="font text_12">设为默认地址</text>
		</view>
		<view class="flex-col justify-start items-center text-wrapper_4"><text class="font text_13">确认添加</text></view>
	</view>
</template>

<script>
	export default {
		components: {},
		props: {},
		data() {
			return {
				array: ["家", "公司"],
				index: 0
			};
		},

		methods: {
			bindPickerChange: function(e) {
				this.index = e.detail.value;
			},
		},
	};
</script>

<style scoped lang="css">
	.mt-19 {
		margin-top: 38rpx;
	}

	.page {
		padding: 0 56rpx 226rpx;
		background-color: #ffffff;
		width: 100%;
		overflow-y: auto;
		overflow-x: hidden;
		height: 100%;
	}

	.group {
		padding-bottom: 8rpx;
	}

	.image {
		width: 48rpx;
		height: 44rpx;
	}

	.pos {
		position: absolute;
		left: 1rpx;
		top: 50%;
		transform: translateY(-50%);
	}

	.text {
		color: #2d3142;
		font-size: 40rpx;
		font-family: Laila;
		font-weight: 700;
		line-height: 38.04rpx;
	}

	.boxs {
		margin-top: 50rpx;
	}

	.font {
		font-size: 32rpx;
		font-family: Mukta;
		line-height: 29.7rpx;
		font-weight: 600;
		color: #2d3142;
	}

	.text_2 {
		line-height: 30.18rpx;
	}

	.text-wrapper {
		padding: 28rpx 0 36rpx;
		border-radius: 24rpx;
		border-left: solid 2rpx #e6e9f1;
		border-right: solid 2rpx #e6e9f1;
		border-top: solid 2rpx #e6e9f1;
		border-bottom: solid 2rpx #e6e9f1;
	}

	.input-box {
		padding: 8rpx 0 6rpx;
		border-radius: 24rpx;
		border-left: solid 2rpx #e6e9f1;
		border-right: solid 2rpx #e6e9f1;
		border-top: solid 2rpx #e6e9f1;
		border-bottom: solid 2rpx #e6e9f1;
	}

	.font_2 {
		font-size: 32rpx;
		font-family: Mukta;
		line-height: 29.7rpx;
		color: #2d3142;
	}

	.text_3 {
		width: 530rpx;
		margin: 20rpx;

	}

	.text_4 {
		line-height: 30.12rpx;
	}

	.text_5 {
		line-height: 30.3rpx;
	}

	.group_3 {
		padding: 28rpx 36rpx 36rpx 40rpx;
		border-radius: 24rpx;
		border-left: solid 2rpx #e6e9f1;
		border-right: solid 2rpx #e6e9f1;
		border-top: solid 2rpx #e6e9f1;
		border-bottom: solid 2rpx #e6e9f1;
	}

	.font_3 {
		font-size: 32rpx;
		font-family: Mukta;
		line-height: 29.7rpx;
		color: #2d3142;
	}

	.image_2 {
		border-radius: 2rpx;
		width: 26rpx;
		height: 20rpx;
	}

	.text_6 {
		line-height: 30.18rpx;
	}

	.group_4 {
		padding: 32rpx 36rpx 32rpx 40rpx;
		border-radius: 24rpx;
		border-left: solid 2rpx #e6e9f1;
		border-right: solid 2rpx #e6e9f1;
		border-top: solid 2rpx #e6e9f1;
		border-bottom: solid 2rpx #e6e9f1;
	}

	.text_7 {
		line-height: 29.54rpx;
	}

	.text_8 {
		line-height: 30.4rpx;
	}

	.text-wrapper_2 {
		padding: 36rpx 0;
		border-radius: 24rpx;
		border-left: solid 2rpx #e6e9f1;
		border-right: solid 2rpx #e6e9f1;
		border-top: solid 2rpx #e6e9f1;
		border-bottom: solid 2rpx #e6e9f1;
	}

	.text_9 {
		margin-left: 40rpx;
		line-height: 20.74rpx;
	}

	.text_10 {
		line-height: 30.3rpx;
	}

	.text-wrapper_3 {
		padding: 32rpx 0 36rpx;
		border-radius: 24rpx;
		border-left: solid 2rpx #e6e9f1;
		border-right: solid 2rpx #e6e9f1;
		border-top: solid 2rpx #e6e9f1;
		border-bottom: solid 2rpx #e6e9f1;
	}

	.text_11 {
		margin-left: 40rpx;
		line-height: 29.5rpx;
	}

	.group_5 {
		margin-top: 76rpx;
	}

	.image_3 {
		border-radius: 20rpx;
		width: 58rpx;
		height: 32rpx;
	}

	.text_12 {
		color: #3a7beb;
		line-height: 30.12rpx;
	}

	.text-wrapper_4 {
		margin-top: 50rpx;
		padding: 40rpx 0 44rpx;
		background-color: #3a7beb;
		border-radius: 32rpx;
		box-shadow: 0rpx 8rpx 30rpx #fd878733;
	}

	.text_13 {
		color: #ffffff;
		line-height: 30.2rpx;
	}
</style>